  /**
   * Generate time : 2012-06-20 12:31:20
   * Version : 1.0.1.V20070717
   */
package com.baosight.sczx.zm.ct.domain;

import com.baosight.iplat4j.util.NumberUtils;
import com.baosight.iplat4j.core.ei.EiColumn;
import com.baosight.iplat4j.ep.DaoEPBase;
import java.util.HashMap;
import java.util.Map;
import com.baosight.iplat4j.util.StringUtils;
/**
 * ZMCTSmsBoxsending 
 *  
 */
public class ZMCTSmsBoxsending extends DaoEPBase {

	private Float id = new Float(0);		
	private String appid = " ";		
	private String sender = " ";		
	private String receiver = " ";		
	private String content = " ";		
	private String sendtime = " ";		
	private String inserttime = " ";		
	private Long retrytimes = new Long(0);	
	private String pri = " ";		
	private String inpool = " ";		
	private String inpooltime = " ";		
	private String taskBatchname = " ";		
	private String addtion1 = " ";		
	private String addtion2 = " ";		
	private String addtion3 = " ";		
	private String moduleid = " ";		
	private String sendmode = " ";		
	private String configid = " ";		
	private String linkid1 = " ";		
	private String linkid2 = " ";		
	private String ifreceipt = " ";		
	private String validityperiod = " ";		
	private String outteruser = " ";		

	/**
	 * initialize the metadata 
	 */
	public void initMetaData() {
		EiColumn eiColumn;
		
	eiColumn = new EiColumn("id");
	eiColumn.setPrimaryKey(true);
	eiColumn.setType("N");
	eiColumn.setScaleLength(-127);
	eiColumn.setFieldLength(0);
	eiColumn.setDescName(" ");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("appid");
	eiColumn.setFieldLength(20);	
	eiColumn.setDescName(" ");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("sender");
	eiColumn.setFieldLength(20);	
	eiColumn.setDescName(" ");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("receiver");
	eiColumn.setFieldLength(20);	
	eiColumn.setDescName(" ");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("content");
	eiColumn.setFieldLength(500);	
	eiColumn.setDescName(" ");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("sendtime");
	eiColumn.setFieldLength(20);	
	eiColumn.setDescName(" ");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("inserttime");
	eiColumn.setFieldLength(20);	
	eiColumn.setDescName(" ");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("retrytimes");
	eiColumn.setType("N");
	eiColumn.setScaleLength(0);
	eiColumn.setFieldLength(38);
	eiColumn.setDescName(" ");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("pri");
	eiColumn.setFieldLength(1);	
	eiColumn.setDescName(" ");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("inpool");
	eiColumn.setFieldLength(1);	
	eiColumn.setDescName(" ");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("inpooltime");
	eiColumn.setFieldLength(20);	
	eiColumn.setDescName(" ");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("taskBatchname");
	eiColumn.setFieldLength(40);	
	eiColumn.setDescName(" ");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("addtion1");
	eiColumn.setFieldLength(20);	
	eiColumn.setDescName(" ");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("addtion2");
	eiColumn.setFieldLength(30);	
	eiColumn.setDescName(" ");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("addtion3");
	eiColumn.setFieldLength(40);	
	eiColumn.setDescName(" ");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("moduleid");
	eiColumn.setFieldLength(20);	
	eiColumn.setDescName(" ");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("sendmode");
	eiColumn.setFieldLength(1);	
	eiColumn.setDescName(" ");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("configid");
	eiColumn.setFieldLength(20);	
	eiColumn.setDescName(" ");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("linkid1");
	eiColumn.setFieldLength(50);	
	eiColumn.setDescName(" ");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("linkid2");
	eiColumn.setFieldLength(50);	
	eiColumn.setDescName(" ");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("ifreceipt");
	eiColumn.setFieldLength(1);	
	eiColumn.setDescName(" ");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("validityperiod");
	eiColumn.setFieldLength(20);	
	eiColumn.setDescName(" ");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("outteruser");
	eiColumn.setFieldLength(100);	
	eiColumn.setDescName(" ");
	eiMetadata.addMeta(eiColumn);
	

	}
	/**
	 * the constructor
	 */
	public ZMCTSmsBoxsending() {
		initMetaData();
	}
	
	/**
	 * get the id 
	 * @return the id
	 */
	public Float getId() {
		return this.id;
	}
	
	/**
	 * set the id 
	 */
	public void setId(Float id) {
		this.id = id;
	}
	
	/**
	 * get the appid 
	 * @return the appid
	 */
	public String getAppid() {
		return this.appid;
	}
	
	/**
	 * set the appid 
	 */
	public void setAppid(String appid) {
		this.appid = appid;
	}
	
	/**
	 * get the sender 
	 * @return the sender
	 */
	public String getSender() {
		return this.sender;
	}
	
	/**
	 * set the sender 
	 */
	public void setSender(String sender) {
		this.sender = sender;
	}
	
	/**
	 * get the receiver 
	 * @return the receiver
	 */
	public String getReceiver() {
		return this.receiver;
	}
	
	/**
	 * set the receiver 
	 */
	public void setReceiver(String receiver) {
		this.receiver = receiver;
	}
	
	/**
	 * get the content 
	 * @return the content
	 */
	public String getContent() {
		return this.content;
	}
	
	/**
	 * set the content 
	 */
	public void setContent(String content) {
		this.content = content;
	}
	
	/**
	 * get the sendtime 
	 * @return the sendtime
	 */
	public String getSendtime() {
		return this.sendtime;
	}
	
	/**
	 * set the sendtime 
	 */
	public void setSendtime(String sendtime) {
		this.sendtime = sendtime;
	}
	
	/**
	 * get the inserttime 
	 * @return the inserttime
	 */
	public String getInserttime() {
		return this.inserttime;
	}
	
	/**
	 * set the inserttime 
	 */
	public void setInserttime(String inserttime) {
		this.inserttime = inserttime;
	}
	
	/**
	 * get the retrytimes 
	 * @return the retrytimes
	 */
	public Long getRetrytimes() {
		return this.retrytimes;
	}
	
	/**
	 * set the retrytimes 
	 */
	public void setRetrytimes(Long retrytimes) {
		this.retrytimes = retrytimes;
	}
	
	/**
	 * get the pri 
	 * @return the pri
	 */
	public String getPri() {
		return this.pri;
	}
	
	/**
	 * set the pri 
	 */
	public void setPri(String pri) {
		this.pri = pri;
	}
	
	/**
	 * get the inpool 
	 * @return the inpool
	 */
	public String getInpool() {
		return this.inpool;
	}
	
	/**
	 * set the inpool 
	 */
	public void setInpool(String inpool) {
		this.inpool = inpool;
	}
	
	/**
	 * get the inpooltime 
	 * @return the inpooltime
	 */
	public String getInpooltime() {
		return this.inpooltime;
	}
	
	/**
	 * set the inpooltime 
	 */
	public void setInpooltime(String inpooltime) {
		this.inpooltime = inpooltime;
	}
	
	/**
	 * get the taskBatchname 
	 * @return the taskBatchname
	 */
	public String getTaskBatchname() {
		return this.taskBatchname;
	}
	
	/**
	 * set the taskBatchname 
	 */
	public void setTaskBatchname(String taskBatchname) {
		this.taskBatchname = taskBatchname;
	}
	
	/**
	 * get the addtion1 
	 * @return the addtion1
	 */
	public String getAddtion1() {
		return this.addtion1;
	}
	
	/**
	 * set the addtion1 
	 */
	public void setAddtion1(String addtion1) {
		this.addtion1 = addtion1;
	}
	
	/**
	 * get the addtion2 
	 * @return the addtion2
	 */
	public String getAddtion2() {
		return this.addtion2;
	}
	
	/**
	 * set the addtion2 
	 */
	public void setAddtion2(String addtion2) {
		this.addtion2 = addtion2;
	}
	
	/**
	 * get the addtion3 
	 * @return the addtion3
	 */
	public String getAddtion3() {
		return this.addtion3;
	}
	
	/**
	 * set the addtion3 
	 */
	public void setAddtion3(String addtion3) {
		this.addtion3 = addtion3;
	}
	
	/**
	 * get the moduleid 
	 * @return the moduleid
	 */
	public String getModuleid() {
		return this.moduleid;
	}
	
	/**
	 * set the moduleid 
	 */
	public void setModuleid(String moduleid) {
		this.moduleid = moduleid;
	}
	
	/**
	 * get the sendmode 
	 * @return the sendmode
	 */
	public String getSendmode() {
		return this.sendmode;
	}
	
	/**
	 * set the sendmode 
	 */
	public void setSendmode(String sendmode) {
		this.sendmode = sendmode;
	}
	
	/**
	 * get the configid 
	 * @return the configid
	 */
	public String getConfigid() {
		return this.configid;
	}
	
	/**
	 * set the configid 
	 */
	public void setConfigid(String configid) {
		this.configid = configid;
	}
	
	/**
	 * get the linkid1 
	 * @return the linkid1
	 */
	public String getLinkid1() {
		return this.linkid1;
	}
	
	/**
	 * set the linkid1 
	 */
	public void setLinkid1(String linkid1) {
		this.linkid1 = linkid1;
	}
	
	/**
	 * get the linkid2 
	 * @return the linkid2
	 */
	public String getLinkid2() {
		return this.linkid2;
	}
	
	/**
	 * set the linkid2 
	 */
	public void setLinkid2(String linkid2) {
		this.linkid2 = linkid2;
	}
	
	/**
	 * get the ifreceipt 
	 * @return the ifreceipt
	 */
	public String getIfreceipt() {
		return this.ifreceipt;
	}
	
	/**
	 * set the ifreceipt 
	 */
	public void setIfreceipt(String ifreceipt) {
		this.ifreceipt = ifreceipt;
	}
	
	/**
	 * get the validityperiod 
	 * @return the validityperiod
	 */
	public String getValidityperiod() {
		return this.validityperiod;
	}
	
	/**
	 * set the validityperiod 
	 */
	public void setValidityperiod(String validityperiod) {
		this.validityperiod = validityperiod;
	}
	
	/**
	 * get the outteruser 
	 * @return the outteruser
	 */
	public String getOutteruser() {
		return this.outteruser;
	}
	
	/**
	 * set the outteruser 
	 */
	public void setOutteruser(String outteruser) {
		this.outteruser = outteruser;
	}
	
	/**
	 * get the value from Map
	 */
	public void fromMap(Map map) {
	
		setId(NumberUtils.toFloat(StringUtils.toString(map.get("id")), id));
		setAppid(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("appid")), appid));
		setSender(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("sender")), sender));
		setReceiver(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("receiver")), receiver));
		setContent(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("content")), content));
		setSendtime(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("sendtime")), sendtime));
		setInserttime(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("inserttime")), inserttime));
		setRetrytimes(NumberUtils.toLong(StringUtils.toString(map.get("retrytimes")), retrytimes));
		setPri(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("pri")), pri));
		setInpool(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("inpool")), inpool));
		setInpooltime(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("inpooltime")), inpooltime));
		setTaskBatchname(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("taskBatchname")), taskBatchname));
		setAddtion1(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("addtion1")), addtion1));
		setAddtion2(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("addtion2")), addtion2));
		setAddtion3(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("addtion3")), addtion3));
		setModuleid(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("moduleid")), moduleid));
		setSendmode(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("sendmode")), sendmode));
		setConfigid(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("configid")), configid));
		setLinkid1(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("linkid1")), linkid1));
		setLinkid2(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("linkid2")), linkid2));
		setIfreceipt(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("ifreceipt")), ifreceipt));
		setValidityperiod(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("validityperiod")), validityperiod));
		setOutteruser(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("outteruser")), outteruser));
	}
	
	/**
	 * set the value to Map
	 */
	public Map toMap() {
		
		Map map = new HashMap();
			map.put("id",StringUtils.toString(id, eiMetadata.getMeta("id")));	
			map.put("appid",StringUtils.toString(appid, eiMetadata.getMeta("appid")));	
			map.put("sender",StringUtils.toString(sender, eiMetadata.getMeta("sender")));	
			map.put("receiver",StringUtils.toString(receiver, eiMetadata.getMeta("receiver")));	
			map.put("content",StringUtils.toString(content, eiMetadata.getMeta("content")));	
			map.put("sendtime",StringUtils.toString(sendtime, eiMetadata.getMeta("sendtime")));	
			map.put("inserttime",StringUtils.toString(inserttime, eiMetadata.getMeta("inserttime")));	
			map.put("retrytimes",StringUtils.toString(retrytimes, eiMetadata.getMeta("retrytimes")));	
			map.put("pri",StringUtils.toString(pri, eiMetadata.getMeta("pri")));	
			map.put("inpool",StringUtils.toString(inpool, eiMetadata.getMeta("inpool")));	
			map.put("inpooltime",StringUtils.toString(inpooltime, eiMetadata.getMeta("inpooltime")));	
			map.put("taskBatchname",StringUtils.toString(taskBatchname, eiMetadata.getMeta("taskBatchname")));	
			map.put("addtion1",StringUtils.toString(addtion1, eiMetadata.getMeta("addtion1")));	
			map.put("addtion2",StringUtils.toString(addtion2, eiMetadata.getMeta("addtion2")));	
			map.put("addtion3",StringUtils.toString(addtion3, eiMetadata.getMeta("addtion3")));	
			map.put("moduleid",StringUtils.toString(moduleid, eiMetadata.getMeta("moduleid")));	
			map.put("sendmode",StringUtils.toString(sendmode, eiMetadata.getMeta("sendmode")));	
			map.put("configid",StringUtils.toString(configid, eiMetadata.getMeta("configid")));	
			map.put("linkid1",StringUtils.toString(linkid1, eiMetadata.getMeta("linkid1")));	
			map.put("linkid2",StringUtils.toString(linkid2, eiMetadata.getMeta("linkid2")));	
			map.put("ifreceipt",StringUtils.toString(ifreceipt, eiMetadata.getMeta("ifreceipt")));	
			map.put("validityperiod",StringUtils.toString(validityperiod, eiMetadata.getMeta("validityperiod")));	
			map.put("outteruser",StringUtils.toString(outteruser, eiMetadata.getMeta("outteruser")));	
			
		return map;
	
	}
}